/*   
 * Copyright (c) 2012 by system INFORMATION TECHNOLOGY CO.
 *             All rights reserved                         
 */
package com.system.web.common.utils;

/**
 * @Description: 正则表达式常量接口
 * @Author <a href="hw86xll@163.com">Wei.Huang</a>
 * @Date 2012-10-8
 * @Version 1.0.0
 */
public interface Regexs {
	/** 数字 */
	public static final String NUMBER = "^[0-9]*$";
	
	/** 数字字母 */
	public static final String NUMBER_CHAR = "^[A-Za-z0-9]+$";

	/** 部门名称 */
	public final String DEPT_NAME = "^[a-zA-Z0-9_\u4e00-\u9fa5]+$";
	
	/** 部门编号 */
	public final String DEPT_IDENTIFY = "^[0-9a-zA-Z]+$";

	/* 中英文数字和-_()符号 */
	public final String CNEN_CHAR = "^[0-9a-zA-Z-_\u4e00-\u9fa5()]*$";
	public final String CNEN_CHAR_MSG = "只能是中文、英文、数字、括号、-、_的组合";
	
	public final String IPREGEX = "^(((2[0-4]\\d)|(25[0-5]))|(1\\d{2})|([1-9]\\d)|(\\d))[.](((2[0-4]\\d)|(25[0-5]))|(1\\d{2})|([1-9]\\d)|(\\d))[.](((2[0-4]\\d)|(25[0-5]))|(1\\d{2})|([1-9]\\d)|(\\d))[.](((2[0-4]\\d)|(25[0-5]))|(1\\d{2})|([1-9]\\d)|(\\d))$";
	public final String IPREGEX_MSG = "IP地址输入不合法";
	
}
